#ifndef __ATTRIBUTE_H
#define __ATTRIBUTE_H

#include "main.h"
#include "mpu6050.h"
#include "math.h"
#include "arm_math.h" 

#define pi ((float)3.1415926f)

typedef struct attribute_t
{
	double pitch;
	double roll;
	double yaw;
}attribute_t;
typedef attribute_t* attribute_p;

void attributeCal(accData_p accData,gyroData_p gyroData,attribute_p attribute);

#define LIMIT(value,min,max)	( ((value) <= (min)) ? (min) : ( ((value) > (max))? (max) : (value) ) )
#endif 

